# $Id: PKGBUILD 70330 2012-05-04 17:22:06Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=pnews
pkgver=2.6.5
_pkgver=265
pkgrel=4
pkgdesc="A PHP web-based NNTP client"
arch=('any')
url="http://sourceforge.net/projects/pnews"
license=('GPL')
depends=('php')
backup=('etc/webapps/pnews/.htaccess')
source=(http://downloads.sourceforge.net/sourceforge/pnews/pnews${_pkgver}.tgz)
md5sums=('a98af52f6b86c2ad4fe0610d67770905')

build() {
  _instdir=$pkgdir/usr/share/webapps/pnews
  mkdir -p ${_instdir} $pkgdir/etc/webapps/pnews
  cd ${_instdir}
  cp -ra $srcdir/pnews${_pkgver}/* .
  echo "deny from all" >$pkgdir/etc/webapps/pnews/.htaccess
  ln -s /etc/webapps/pnews/.htaccess .htaccess
}
